using System;
using DevExpress.Xpo;
namespace Component
{

    public class Colors : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        [Size(50)]
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        string fValue;
        [Size(50)]
        public string Value
        {
            get { return fValue; }
            set { SetPropertyValue<string>("Value", ref fValue, value); }
        }
        public Colors(Session session) : base(session) { }
        public Colors() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class sysdiagrams : XPLiteObject
    {
        string fname;
        [Size(128)]
        public string name
        {
            get { return fname; }
            set { SetPropertyValue<string>("name", ref fname, value); }
        }
        int fprincipal_id;
        public int principal_id
        {
            get { return fprincipal_id; }
            set { SetPropertyValue<int>("principal_id", ref fprincipal_id, value); }
        }
        int fdiagram_id;
        [Key(true)]
        public int diagram_id
        {
            get { return fdiagram_id; }
            set { SetPropertyValue<int>("diagram_id", ref fdiagram_id, value); }
        }
        int fversion;
        public int version
        {
            get { return fversion; }
            set { SetPropertyValue<int>("version", ref fversion, value); }
        }
        byte[] fdefinition;
        public byte[] definition
        {
            get { return fdefinition; }
            set { SetPropertyValue<byte[]>("definition", ref fdefinition, value); }
        }
        public sysdiagrams(Session session) : base(session) { }
        public sysdiagrams() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class FashionTypeOfKind : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        Fashion_Type fFashionType;
        public Fashion_Type FashionType
        {
            get { return fFashionType; }
            set { SetPropertyValue<Fashion_Type>("FashionType", ref fFashionType, value); }
        }
        public FashionTypeOfKind(Session session) : base(session) { }
        public FashionTypeOfKind() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Fashions : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        [Size(200)]
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        string fSummary;
        [Size(500)]
        public string Summary
        {
            get { return fSummary; }
            set { SetPropertyValue<string>("Summary", ref fSummary, value); }
        }
        double fPrice;
        public double Price
        {
            get { return fPrice; }
            set { SetPropertyValue<double>("Price", ref fPrice, value); }
        }
        Maker fMaker;
        public Maker Maker
        {
            get { return fMaker; }
            set { SetPropertyValue<Maker>("Maker", ref fMaker, value); }
        }
        bool fIsNew;
        public bool IsNew
        {
            get { return fIsNew; }
            set { SetPropertyValue<bool>("IsNew", ref fIsNew, value); }
        }
        Colors fColor;
        public Colors Color
        {
            get { return fColor; }
            set { SetPropertyValue<Colors>("Color", ref fColor, value); }
        }
        Shops fShop;
        public Shops Shop
        {
            get { return fShop; }
            set { SetPropertyValue<Shops>("Shop", ref fShop, value); }
        }
        FashionTypeOfKind fType;
        public FashionTypeOfKind Type
        {
            get { return fType; }
            set { SetPropertyValue<FashionTypeOfKind>("Type", ref fType, value); }
        }
        string fUrlImage;
        [Size(300)]
        public string UrlImage
        {
            get { return fUrlImage; }
            set { SetPropertyValue<string>("UrlImage", ref fUrlImage, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        public Fashions(Session session) : base(session) { }
        public Fashions() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Maker : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        public Maker(Session session) : base(session) { }
        public Maker() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Computers : XPLiteObject
    {
        int fId;
        [Key]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        int fType;
        public int Type
        {
            get { return fType; }
            set { SetPropertyValue<int>("Type", ref fType, value); }
        }
        Maker fMaker;
        public Maker Maker
        {
            get { return fMaker; }
            set { SetPropertyValue<Maker>("Maker", ref fMaker, value); }
        }
        string fSumary;
        [Size(500)]
        public string Sumary
        {
            get { return fSumary; }
            set { SetPropertyValue<string>("Sumary", ref fSumary, value); }
        }
        string fContent;
        [Size(2147483647)]
        public string Content
        {
            get { return fContent; }
            set { SetPropertyValue<string>("Content", ref fContent, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        double fPrice;
        public double Price
        {
            get { return fPrice; }
            set { SetPropertyValue<double>("Price", ref fPrice, value); }
        }
        bool fIsNew;
        public bool IsNew
        {
            get { return fIsNew; }
            set { SetPropertyValue<bool>("IsNew", ref fIsNew, value); }
        }
        Shops fShop;
        public Shops Shop
        {
            get { return fShop; }
            set { SetPropertyValue<Shops>("Shop", ref fShop, value); }
        }
        string fUrlImage;
        [Size(300)]
        public string UrlImage
        {
            get { return fUrlImage; }
            set { SetPropertyValue<string>("UrlImage", ref fUrlImage, value); }
        }
        public Computers(Session session) : base(session) { }
        public Computers() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Shops : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        string fAddress;
        [Size(200)]
        public string Address
        {
            get { return fAddress; }
            set { SetPropertyValue<string>("Address", ref fAddress, value); }
        }
        string fEmail;
        public string Email
        {
            get { return fEmail; }
            set { SetPropertyValue<string>("Email", ref fEmail, value); }
        }
        string fPhone;
        [Size(15)]
        public string Phone
        {
            get { return fPhone; }
            set { SetPropertyValue<string>("Phone", ref fPhone, value); }
        }
        string fUrlLogo;
        [Size(300)]
        public string UrlLogo
        {
            get { return fUrlLogo; }
            set { SetPropertyValue<string>("UrlLogo", ref fUrlLogo, value); }
        }
        string fContent;
        [Size(2147483647)]
        public string Content
        {
            get { return fContent; }
            set { SetPropertyValue<string>("Content", ref fContent, value); }
        }
        string fSologan;
        [Size(200)]
        public string Sologan
        {
            get { return fSologan; }
            set { SetPropertyValue<string>("Sologan", ref fSologan, value); }
        }
        Shop_Type fType;
        public Shop_Type Type
        {
            get { return fType; }
            set { SetPropertyValue<Shop_Type>("Type", ref fType, value); }
        }
        public Shops(Session session) : base(session) { }
        public Shops() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Fashion_Type : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        [Size(50)]
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        public Fashion_Type(Session session) : base(session) { }
        public Fashion_Type() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Shop_Type : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        public Shop_Type(Session session) : base(session) { }
        public Shop_Type() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Menu : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        int fPriority;
        public int Priority
        {
            get { return fPriority; }
            set { SetPropertyValue<int>("Priority", ref fPriority, value); }
        }
        string fUrl;
        [Size(500)]
        public string Url
        {
            get { return fUrl; }
            set { SetPropertyValue<string>("Url", ref fUrl, value); }
        }
        string fName;
        [Size(500)]
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        string fSystem;
        [Size(10)]
        public string System
        {
            get { return fSystem; }
            set { SetPropertyValue<string>("System", ref fSystem, value); }
        }
        bool fadmin;
        public bool admin
        {
            get { return fadmin; }
            set { SetPropertyValue<bool>("admin", ref fadmin, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        public Menu(Session session) : base(session) { }
        public Menu() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

    public class Users : XPLiteObject
    {
        int fId;
        [Key(true)]
        public int Id
        {
            get { return fId; }
            set { SetPropertyValue<int>("Id", ref fId, value); }
        }
        string fName;
        [Size(50)]
        public string Name
        {
            get { return fName; }
            set { SetPropertyValue<string>("Name", ref fName, value); }
        }
        string fPhone;
        [Size(15)]
        public string Phone
        {
            get { return fPhone; }
            set { SetPropertyValue<string>("Phone", ref fPhone, value); }
        }
        string fMail;
        [Size(50)]
        public string Mail
        {
            get { return fMail; }
            set { SetPropertyValue<string>("Mail", ref fMail, value); }
        }
        string fUser_name;
        [Size(50)]
        public string User_name
        {
            get { return fUser_name; }
            set { SetPropertyValue<string>("User_name", ref fUser_name, value); }
        }
        string fPass;
        [Size(50)]
        public string Pass
        {
            get { return fPass; }
            set { SetPropertyValue<string>("Pass", ref fPass, value); }
        }
        DateTime fDatecreated;
        public DateTime Datecreated
        {
            get { return fDatecreated; }
            set { SetPropertyValue<DateTime>("Datecreated", ref fDatecreated, value); }
        }
        DateTime fDatelogin;
        public DateTime Datelogin
        {
            get { return fDatelogin; }
            set { SetPropertyValue<DateTime>("Datelogin", ref fDatelogin, value); }
        }
        bool fActive;
        public bool Active
        {
            get { return fActive; }
            set { SetPropertyValue<bool>("Active", ref fActive, value); }
        }
        public Users(Session session) : base(session) { }
        public Users() : base(Session.DefaultSession) { }
        public override void AfterConstruction() { base.AfterConstruction(); }
    }

}
